package com.guonl.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Controller
@RequestMapping
@Api
public class UserController {

    @ApiOperation("hello")
    @RequestMapping("/hello")
    public String hello(HttpServletResponse response) throws IOException {
        response.getWriter().print("hello world");
        return null;
    }

}
